/**
 * @author ItJianGe
 * @data 2024/8/1 14:50
 */
public class MySelfComputerBuilder implements Builder {

    private Computer computer;

    public MySelfComputerBuilder() {
        computer = new Computer();
    }

    @Override
    public Builder initialComputerCase(String computerCase) {
        this.computer.setComputerCase(computerCase);
        return this;
    }

    @Override
    public Builder initialComputerMainBoard(String computerMainBoard) {
        this.computer.setComputerMainBoard(computerMainBoard);
        return this;
    }

    @Override
    public Builder initialComputerGPU(String gpu) {
        this.computer.setGpu(gpu);
        return this;
    }

    @Override
    public Builder initialComputerPower(String power) {
        this.computer.setPower(power);
        return this;
    }

    @Override
    public Computer getComputer() {
        return this.computer;
    }
}
